package com.teamin.mapper;

import com.teamin.vo.CircleLabelsVO;
import com.teamin.vo.CircleProgressSecondVO;
import com.teamin.vo.CircleProgressVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProgressMapper {

    /**
     * @Author: yangrui
     * @Description: 查看圈子所有任务的标签
     * @Date: 下午6:26 2017/11/24
     */
    List<CircleLabelsVO> labels(@Param("circleId") Integer circleId);

    /**
     * @Author: yangrui
     * @Description: 整体进展
     * @Date: 下午7:07 2017/11/24
     */
    CircleProgressVO progressWhole(@Param("circleId") Integer circleId, @Param("list") List<Integer> labelIds);

    /**
     * @Author: yangrui
     * @Description: 个人进展
     * @Date: 下午7:14 2017/11/24
     */
    List<CircleProgressSecondVO> progressPersonal(@Param("circleId") Integer circleId, @Param("list") List<Integer> labelIds);

    /**
     * 标签匹配
     * @param labelIds
     * @return 配合到到数量
     */
    Integer labelMatch(@Param("list") List<Integer> labelIds);


}
